package dao;

import org.w3c.dom.Document;

import databean.SellerBean;

import utility.Util_Trading;


public class GetSellerDashboardDAO {
	public static SellerBean getSellerDashboard() {
				
		Document response = Util_Trading.sendRequest("GetSellerDashboard.txt", null);
				
		String status = response.getElementsByTagName("Status").item(0).getChildNodes().item(0).getNodeValue();
		String percent = response.getElementsByTagName("Percent").item(0).getChildNodes().item(0).getNodeValue();
		String level = response.getElementsByTagName("Level").item(0).getChildNodes().item(0).getNodeValue();
		
		SellerBean seller = new SellerBean();
		seller.setStatus(status);
		seller.setPercent(percent);
		seller.setLevel(level);
						
		return seller;
	}
}
